package com.yjf.ljr.view;

import com.yjf.ljr.R;

import android.app.Dialog;
import android.content.Context;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class DialogView extends Dialog {
	private Context mContext;
	private Button mBtDialogOk;
	private Button mBtDialogCancel;
	private TextView mTvTitle;
	private TextView mTvMessage;
	private String title;
	private String message;
	private View mViewid;// 显示的view

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
		if (!TextUtils.isEmpty(title)) {
			mTvTitle.setText(title);
		}
	}

	public String getMessage() {
		return message;

	}

	public void setMessage(String message) {
		this.message = message;
		if (!TextUtils.isEmpty(message)) {
			mTvMessage.setText(message);
		}
	}

	public DialogView(Context context, View mViewid) {
		super(context, R.style.dialog);
		// TODO Auto-generated constructor stub
		this.mContext = context;
		this.mViewid = mViewid;

		initView();

	}

	private void initView() {

		setContentView(mViewid);

	}

}
